<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/26
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>sessionLogin</title>
</head>
<body>
<%
//    向session中存储信息
    session.setAttribute("loginName","admin");
    session.setAttribute("pwd","111111");
%>
<form action="sessionSuc.jsp">
    用户名：<input type="text" name="loginName"
               value="<%=(String)session.getAttribute("loginName")%>">
    密码：<input type="password" name="pwd"
              value="<%=(String)session.getAttribute("pwd")%>">
    <button type="submit">登录</button>
</form>
</body>
</html>
